import request from '@/utils/request'

// 查询盘库日志列表
export function listCheckLog(query) {
  return request({
    url: '/recovery/check-log/list',
    method: 'get',
    params: query
  })
}

export function exportRow(query) {
  return request({
    url: '/recovery/check-log/export/row',
    method: 'get',
    params: query
  })
}

// 查询盘库日志详细
export function getCheckLog(id) {
  return request({
    url: '/recovery/check-log/' + id,
    method: 'get'
  })
}

// 新增盘库日志
export function addCheckLog(data) {
  return request({
    url: '/recovery/check-log',
    method: 'post',
    data: data
  })
}

// 修改盘库日志
export function updateCheckLog(data) {
  return request({
    url: '/recovery/check-log',
    method: 'put',
    data: data
  })
}

// 删除盘库日志
export function delCheckLog(id) {
  return request({
    url: '/recovery/check-log/' + id,
    method: 'delete'
  })
}

// 导出盘库日志
export function exportCheckLog(query) {
  return request({
    url: '/recovery/check-log/export',
    method: 'get',
    params: query
  })
}

export function listHandleCheckLogList(query) {
  return request({
    url: '/recovery/check-log/handleCheckList',
    method: 'get',
    params: query
  })
}

export function addHandleCheckLogList(data) {
  return request({
    url: '/recovery/check-log/addHandleCheck',
    method: 'post',
    data: data
  })
}
